package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * 组合报警记录表 实体类
 * 表名：ra_alarm_record_group
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "ra_alarm_record_group")
public class RaAlarmRecordGroup implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 主键
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * 组合编码
     */
    @Column(name = "group_code", nullable = false, length = 32)
    private String groupCode;
    
    /**
     * 报警影响描述
     */
    @Column(name = "alarm_inf_desc", length = 256)
    private String alarmInfDesc;
    
    /**
     * 原因类型
     */
    @Column(name = "reason_type")
    private Byte reasonType;
    
    /**
     * 最大的报警记录详情主键
     */
    @Column(name = "alarm_record_detail_id", nullable = false)
    private Long alarmRecordDetailId;
    
    /**
     * 最高风险IPL值
     */
    @Column(name = "remnant_ipl")
    private Integer remnantIpl;
    
    /**
     * 状态(0、未处理 1、已处理)
     * 默认值: 0
     */
    @Column(name = "status")
    private Byte status;
    
    /**
     * 操作类型（1、抑制 2、标记 3、上报）
     * 默认值: 0
     */
    @Column(name = "operate_type")
    private Byte operateType;
    
    /**
     * 租户主键
     */
    @Column(name = "tenant_id")
    private Integer tenantId;
    
    /**
     * 是否删除（0、否1、是）
     * 默认值: 0
     */
    @Column(name = "is_del", nullable = false)
    private Byte isDel;
    
    /**
     * 创建时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "create_time", nullable = false)
    private java.time.LocalDateTime createTime;
    
    /**
     * 更新时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "update_time", nullable = false)
    private java.time.LocalDateTime updateTime;
    
    @Override
    public String toString() {
        return "RaAlarmRecordGroup{" +
            "id=" + id +
            ", groupCode=" + groupCode +
            ", alarmInfDesc=" + alarmInfDesc +
            ", reasonType=" + reasonType +
            ", alarmRecordDetailId=" + alarmRecordDetailId +
            ", remnantIpl=" + remnantIpl +
            ", status=" + status +
            ", operateType=" + operateType +
            ", tenantId=" + tenantId +
            ", isDel=" + isDel +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
        '}';
    }
} 